package com.hsgene.product.service.impl;

import com.hsgene.product.domain.GeneticBanners;
import com.hsgene.product.persistence.GeneticBannersRepository;
import com.hsgene.product.service.GeneticBannersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description:
 * @projectName: hdas-geneshop-server
 * @package: com.hsgene.product.service.impl
 * @author: maodi
 * @createDate: 2018/10/11 13:42
 * @version: 1.0
 * Copyright: Copyright (c) 2018
 */
@Service
public class GeneticBannersServiceImpl implements GeneticBannersService {

    @Resource
    GeneticBannersRepository geneticBannersRepository;

    /**
     * @param
     * @return java.util.List<com.hsgene.basic.domain.GeneticBanners>
     * @description 获取首页banner（轮播）图片
     * @author maodi
     * @createDate 2018/10/11 13:43
     */
    @Override
    public List<GeneticBanners> getBanner() {
        return geneticBannersRepository.getBanner();
    }

    /**
     * @param
     * @return java.util.List<com.hsgene.basic.domain.GeneticBanners>
     * @description 获取首页下面的9张图片
     * @author maodi
     * @createDate 2018/10/11 13:43
     */
    @Override
    public List<GeneticBanners> getImages() {
        return geneticBannersRepository.getImages();
    }
}
